package com.bp.system.service;

import com.bp.system.domain.SysNoticeReadStatus;

import java.util.List;

/**
 * @author shaominjie
 * @Description 通知公告的读取关系,删除都是假删除
 * @date %{DATE} 16:34
 */
public interface ISysNoticeReadStatusService {
    public int insert(SysNoticeReadStatus readStatus);

    public int insertAll(List<SysNoticeReadStatus> list, String loginName);

    public int update(Long id, String status, String loginName);

    public int updateByUserId(Long userId, String status, String loginName);
    public int updateByNoticeIdAndUserId(Long noticeId, Long userId, String status, String loginName);

    public int updateAll(Long[] ids, String status, String loginName);

    public int deleteByNoticeId(Long noticeId, String loginName);

    public int deleteByUserId(Long userId, String loginName);

    public int deleteByUserIds(Long[] userIds, String loginName);

    public int deleteByDeptId(Long deptId, String loginName);

    public int deleteByDeptIds(Long[] deptIds, String loginName);

    public int delete(Long id, String loginName);

    public List<SysNoticeReadStatus> selectByUserId(Long userId, String status);

    public List<SysNoticeReadStatus> selectByNoticeId(Long noticeId, String status);

    public int deleteByNoticeIds(Long[] toLongArray);
}
